#pragma once

#include "Mod3Algorithm.h"
#include <vector>

typedef std::vector<Point> PointArray;

class GreedyAlgorithm:public Mod3Algorithm 
{
protected:
	int m_left [MAX_H][MAX_V];
	int m_right [MAX_H][MAX_V];
	int m_top [MAX_H][MAX_V];
	int m_bottom [MAX_H][MAX_V];
	void AddMorePoint();
public:
	void Initialize(BattleShipPtr _battle);
	void FoundPos(Point p, bool value);
	void FoundShip(ShipPtr ship);
};